package com.xiaoxing.zhinenghuacangku_rizhao.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_rizhao.mvp.contract.RiZhao_DianBiaoGongNengCaoZuoXuanZeContract;
import com.xiaoxing.zhinenghuacangku_rizhao.mvp.model.RiZhao_DianBiaoGongNengCaoZuoXuanZeModel;


@Module
public class RiZhao_DianBiaoGongNengCaoZuoXuanZeModule {
    private RiZhao_DianBiaoGongNengCaoZuoXuanZeContract.View view;

    /**
     * 构建RiZhao_DianBiaoGongNengCaoZuoXuanZeModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public RiZhao_DianBiaoGongNengCaoZuoXuanZeModule(RiZhao_DianBiaoGongNengCaoZuoXuanZeContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    RiZhao_DianBiaoGongNengCaoZuoXuanZeContract.View provideRiZhao_DianBiaoGongNengCaoZuoXuanZeView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    RiZhao_DianBiaoGongNengCaoZuoXuanZeContract.Model provideRiZhao_DianBiaoGongNengCaoZuoXuanZeModel(RiZhao_DianBiaoGongNengCaoZuoXuanZeModel model) {
        return model;
    }
}